pull: Actually mmap summary files
authorAlexander Larsson <alexl@redhat.com>
Fri, 11 Sep 2020 09:24:43 +0000 (11:24 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 11 Sep 2020 10:00:02 +0000 (12:00 +0200)
commitdddb449d2c099ffff5bb4f9de2ed4d2c61b4e905
tree125a177838034c930cb3ff8e6dbb084573fddf01
parent85accb84e87a4964a0fff02b28117a1e6b137c39
pull: Actually mmap summary files

The change in cbf1aca1d5c08d2f40832d16670484ba878d95fb actually
only mmaps the signature file, not the summary. This change makes
use mmap both, as well as extract the cache loading into a helper
function that we will later use in more places.
src/libostree/ostree-repo-pull.c